﻿@model IndoReputation.Views.ViewModels.NewsValuesModel
@using (Html.BeginCollectionItem("ListNewsValuesModel"))
{
    <div class="divReport">
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.NewsID)
        @Html.HiddenFor(model => model.NewsParameterID)
        @Html.HiddenFor(model => model.CreateAt)
        @Html.HiddenFor(model => model.CreateBy)
        <div class="form-data">
            <table class="table-data-news-parameter">
                <tr>                   
                    <td class="td-label">
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.NewsParameterName)
                        </div>
                    </td>
                    <td class="td-control">
                        <div class="editor-field">
                            @(Html.Telerik().ComboBoxFor(model => model.NewsParameterValue)
                                    //.Name("NewsParameterValue")
                                    .BindTo(new SelectList(Model.NewsParameterValueList, "Value", "Text"))
                                    //.Placeholder("Select...")
                                    .SelectedIndex(1)
                                    .Filterable(filtering =>
                                    {
                                        filtering.FilterMode(AutoCompleteFilterMode.Contains);
                                    })
                                    .HighlightFirstMatch(true)
                            )
                            @Html.ValidationMessageFor(model => model.NewsParameterValue)
                        </div>
                    </td>
                    <td class="td-control2">
                        <div class="editor-field">
                            @(Html.Telerik().ComboBoxFor(model => model.NewsMarkString)
                                    //.Name("NewsMarkString")
                                    .BindTo(new SelectList(Model.NewsMarkList, "Value", "Text"))
                                    //.Placeholder("Select...")
                                    .SelectedIndex(4)
                                    .Filterable(filtering =>
                                    {
                                        filtering.FilterMode(AutoCompleteFilterMode.Contains);
                                    })
                                    .HighlightFirstMatch(true)
                            )
                            @Html.ValidationMessageFor(model => model.NewsMarkString)
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
}